package com.qing

import java.lang.reflect.ParameterizedType

import org.apache.spark.ml.clustering.LDA


/**
  * Created by wuliao on 2017/12/26.
  */
object LDA {
  def main(args: Array[String]): Unit = {




    val genType = Class.forName("org.apache.spark.ml.clustering.LDA").getGenericSuperclass()

    val params = genType.asInstanceOf[ParameterizedType].getActualTypeArguments().apply(0)

    new Object().asInstanceOf[LDA]
//    entityClass =  (Class)params[0]
    println(params)


  }
}
